<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>劳动监察管理系统-注册</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style_login.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/CSS/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
<!--
   function check()
{

  var c = document.frm.unitUserLoginName.value; 
    var reLetterOrDigit = /^[a-zA-Z0-9_]{4,10}$/i;
    if(!reLetterOrDigit.test(c)) {
		alert("用户名只能是数字、字母、下划线的组合并且位数为4—10位，请重新输入！");
		return false;
	}
   var pwd = document.frm.unitUserPassword.value;
   var pwd1 = document.frm.unitUserPassword1.value;
   if(pwd.length <= 16 && pwd.length >= 6) {
	   if (pwd != pwd1) {
	         alert("两个密码不相同");
	         return false;
	      }
	}else{
	 alert("密码为6—16位之间");
	 return false;	
	} 

	var  name = document.frm.unitUserName.value;
	if(name == "") {
	alert("姓名不能为空");
	return false;
	} 

}
-->
</script>
</head>

<body style="background:#fff;">

<form action="<%=request.getContextPath() %>/register.do?method=add" name="frm" method="post" onSubmit="return check();" target="sbt">

<div id="register_main">
<!--register head begin-->
<div id="header">
 <div class="logo"></div>
</div>


<div id="register_user">&nbsp;<img src="<%=request.getContextPath()%>/images/icon_position.gif"/>&nbsp;企业用户注册</div>

 <div class="democss">
<p>
<label for="fname" accesskey="F"><span class="required">*</span>登录名：</label>
<input class="registerinput" type="text" id="fname" name="unitUserLoginName" value=""  />&nbsp;&nbsp;&nbsp;&nbsp;<span class="hui">登录名只能为数字、字母、下划线的组合并且位数为4—10位</span>
</p>
<p>
<label for="lname" accesskey="L"><span class="required">*</span>密码：</label>
<input class="registerinput" type="password" id="lname" name="unitUserPassword" value="" />&nbsp;&nbsp;&nbsp;&nbsp;<span class="hui">密码字符数为6-16位之间，字母、数字、符号均可</span>
</p>
<p>
<label for="content" accesskey="C"><span class="required">*</span>确认密码：</label>
<input class="registerinput" type="password" id="lname1" name="unitUserPassword1" value="" onblur=""/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hui">请再次输入上面的密码</span></p>
<p>
<label for="sex" accesskey="G"><span class="required">*</span> 姓名：</label>
<input class="registerinput" type="text" id="lname" name="unitUserName" value="" />&nbsp;&nbsp;&nbsp;&nbsp;<span class="hui">请输入您真实的中文姓名</span></p>
<p>
<label for="yid" accesskey="Y">性别：</label>
<input type="radio" name="unitUserSex" value="0"/ checked>男&nbsp;<input  type="radio" name="unitUserSex" value="1"/>女</p>
<p>
<label for="pw" accesskey="P">部门：</label><input class="registerinput" type="text" id="lname" name="unitUserDepart" value="" />
</p>
<p>
<label for="pw2" accesskey="R">职务：</label>
<input class="registerinput" type="text" id="lname" name="unitUserDuty" value=""/></p>
<p><input name="sub" type="submit" value="提交注册信息" class="buttonsharepower" /></p>
</div>


 <div id="footer">版权所有：张掖市劳动监察信息管理系统</div>
</div>

</form>
<iframe name="sbt" src="" frameBorder="0" width="0" height="0"></iframe>
</body>
</html>
